<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            font-family: Avenir, Arial, sans-serif;
            margin: 2%;
        }

        div.flip-3d {
            perspective: 1200px;
            width: 28%;
            display: inline-block;
            margin: 2%;
        }

        div.flip-3d figure {
            position: relative;
            transform-style: preserve-3d;
            transition: 1s transform;
            font-size: 1.6rem;
        }

        div.flip-3d figure img {
            width: 100%;
            height: auto;
        }

        div.flip-3d figure figcaption {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            transform: rotateY(.5turn) translateZ(1px);
            background: rgba(255, 255, 255, 0.9);
            text-align: center;
            padding-top: 45%;
            opacity: 0.6;
            transition: 1s .5s opacity;
        }

        div.flip-3d:hover figure {
            transform: rotateY(.5turn);
        }

        div.flip-3d:hover figure figcaption {
            opacity: 1;
        }

        div.flip-3d figure:after {
            content: " ";
            display: block;
            height: 8vw;
            width: 100%;
            transform: rotateX(90deg);
            background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
        }

        @media screen and (max-width: 800px) {
            div#flip-3d {
                perspective-origin: center top;
            }

            div#flip-3d figure {
                display: block;
                width: 50%;
                margin: 0 auto;
                margin-bottom: 12vw;
            }

            div#flip-3d figure:last-child {
                display: none;
            }
        }
    </style>
</head>

<body>
    <div class="flip-3d">
        <figure>
            <img src="https://i.loli.net/2019/11/23/cnKl1Ykd5rZCVwm.jpg" alt>
            <figcaption>Yacht</figcaption>
        </figure>
    </div>

    <div class="flip-3d">
        <figure>
            <img src="https://i.loli.net/2019/11/16/cqyJiYlRwnTeHmj.jpg" alt>
            <figcaption>Bee</figcaption>
        </figure>
    </div>
    <!-- <div class="scene">
        <div class="card">
            <div class="card__face card__face--front">
                <img src="https://i.loli.net/2019/11/23/cnKl1Ykd5rZCVwm.jpg" />
            </div>
            <div class="card__face card__face--back">
                <img src="https://i.loli.net/2019/11/16/cqyJiYlRwnTeHmj.jpg" />
            </div>
        </div>
        <div class="card">
            <div class="card__face card__face--front">
                <img src="https://i.loli.net/2019/11/16/FLnzi5Kq4tkRZSm.jpg" />
            </div>
            <div class="card__face card__face--back">
                <img src="https://i.loli.net/2019/10/18/buDT4YS6zUMfHst.jpg" />
            </div>
        </div>
        <div class="card">
            <div class="card__face card__face--front">
                <img src="https://i.loli.net/2019/10/18/uXF1Kx7lzELB6wf.jpg" />
            </div>
            <div class="card__face card__face--back">
                <img src="https://i.loli.net/2019/11/03/RtVq2wxQYySDb8L.jpg" />
            </div>
        </div>
    </div> -->

</body>

</html>